package com.day07;

import java.net.ServerSocket;

public class Phone {
    String brand;
    double price;
    public static void main(String[] args) {
        Phone p=new Phone();
        System.out.println(p.brand);
        System.out.println(p.price);
        p.brand="小米";
        p.price=1999;
        System.out.println(p.brand);
        System.out.println(p.price);
        p.call();
        p.sendMessage();
    }
    public void call(){
        System.out.println("打电话");
    }
    public void sendMessage(){
        System.out.println("发短信");
    }
}
